$('.icon-close').click(function() {
    $('#top-banner').css('display') == "block" ? $('#top-banner').slideUp("slow") : $('#top-banner').slideDown("slow");
});

setTimeout(function(){$('#top-banner').slideUp("slow")}, 20000);